package spring.cloud.simple.ui.service;

import java.util.List;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.cloud.netflix.feign.FeignClient;

import spring.cloud.simple.ui.model.User;

@FeignClient("SPRING-CLOUD-SIMPLE-SERVICE")
public interface FeignUserService {
    @RequestMapping(value = "/user", method = RequestMethod.GET)
    List<User> findAll();
}
